<h2>View Volume</h2>
<p>The volume information, Author and Subject for the selected volume are detailed on this page.</p>
<center>
<table>
<tr>
	<th align="right" width=30%>Accession Number:</th>
	<td><?php echo $volume->access_id; ?></td>
</tr>
<tr>
	<th align="right">Call Number:</th>
	<td><?php echo $volume->call_number; ?></td>
</tr>
<tr>
	<th align="right">Title:</th>
	<td><?php echo $volume->title; ?></td>
</tr>
<tr>
	<th align="right">Publisher Name:</th>
	<td><?php echo $volume->publisher_name; ?></td>
</tr>
<tr>
	<th align="right">Publisher Year:</th>
	<td><?php echo $volume->publisher_date; ?></td>
</tr>
<tr>
	<th align="right">ISBN:</th>
	<td><?php echo $volume->isbn; ?></td>
</tr>
<tr>
	<th align="right">Location:</th>
	<td><?php echo $location->location_name; ?></td>
</tr>
<tr>
	<th align="right">Catalogue Date:</th>
	<td><?php echo $volume->catalogue_date; ?></td>
</tr>
</table>
</center>
<br />

<!-- Authors belonging to volume -->
<h2 align="left">Authors</h2>
<p>To view an author for this particular volume select the required options.</p>
<center>
<table>
<tr>
	<th align="right" width=30%>Author Name</th>
	<td></td>
	<td></td>	
 <tr>
 
<?php
foreach ($authors->result() as $author)
{
	echo '<tr>';
	
	echo '<th></th>';
	// Details
	echo '<td>' . $author->author_name . '</td>';
	
	// Actions
	echo '<td>';
	echo anchor('public/public_catalogue/viewAuthor/' . $author->author_id, 'View');
	echo '</td>';
	echo '</tr>';
}
?>

</table>
</center>
<br />

<!-- Subjects belonging to volume -->
<h2 align="left">Subjects</h2>
<p>To view a subject for this particular volume select the required options.</p>
<center>
<table>
<tr>
	<th align="right" width=25%>Subject Name</th>
	<td></td>
	<td></td>
</tr>

<?php
foreach ($subjects->result() as $subject)
{
	echo '<tr>';
	
	echo '<th></th>';
	// Details
	echo '<td>' . $subject->subject_name . '</td>';
	
	// Actions
	echo '<td>';
	echo anchor('public/public_catalogue/viewSubject/' . $subject->subject_id, 'View');
	echo '</td>';
	echo '</tr>';
}
?>

</table>

</center>
